/* 
 * File:   biblioteca_FW.h
 * Author: ednei
 *
 * Created on 8 de Janeiro de 2014, 18:35
 */

#include <config_db.h>

#ifndef BIBLIOTECA_H
#define	BIBLIOTECA_H

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <regex.h>


/*************************************/
/********** Biblioteca Socket*********/
/*************************************/

#include <unistd.h>
#include <sys/types.h>
#if defined(__WIN__) || defined(__WIN32__)
#include <windows.h>
#include <winsock2.h>
# define MSG_WAITALL (1 << 3)
#else
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include <arpa/inet.h>
#endif

/*************************************/
/********** Biblioteca ***************/
/*************************************/

#include <iostream>
#include <fstream>


/*************************************/
/********** Biblioteca Gtk ***********/
/*************************************/

#include <gtkmm.h>
/*#include <gtkmm-3.0/gtkmm/treemodelcolumn.h>
#include <gtkmm-3.0/gtkmm/celllayout.h>
#include <gtkmm-3.0/gtkmm/entrycompletion.h>

#include <glibmm-2.4/glibmm/signalproxy.h>
#include <glibmm-2.4/glibmm/refptr.h>
#include <glibmm-2.4/glibmm/ustring.h>
#include <glibmm-2.4/glibmm/interface.h>
#include <glibmm-2.4/glibmm/thread.h>

#include <sigc++-2.0/sigc++/functors/mem_fun.h>*/

/*************************************/
/*************************************/

using namespace std;

#define PORTA_INICIO 0
#define PORTA_MIN 0
#define INCREMENTO_PORTA 1
#define PORTA_MAX 65536


#define QUANT_INICIO 1
#define QUANT_MIN 1
#define QUANT_MAX 100000
#define QUANT_INCREMENTO 1

#define PORTA_SSH 22

#define PORTA_SERVIDOR 5000
#define BUFFER_SERVIDOR 1024


/*********************************************************/
/******************** LABEL'S BOTÕES *********************/
/*********************************************************/

#define BTN_INSERIR_REGRA "Inserir Regra"
#define BTN_ALTERAR_REGRA "Alterar Regra"
#define BTN_LIMPAR_CAMPOS "Limpar Campos"
#define BTN_CANCELAR_INS "Cancelar Alteração"
#define BTN_ATUALIZAR_REGRAS "Atualizar regras no servidor"

#define BTN_FILTRAR_OK "OK"
#define BTN_FILTRAR_RESULTADOS_OK "Fitrar"
#define BTN_CRIAR_REGRAS_FIREWALL "Criar regras de Firewall"
#define BTN_EXCLUIR_FILTRO_LINHAS "Excluir todas as linhas"

#endif	/* BIBLIOTECA_H */

